// src/components/AdminMenu.js
import React from 'react';
import'../assets/styles/AdminMenu.css';

const AdminMenu = ({ setSelectedMenu }) => {
  const handleMenuClick = (menu) => {
    setSelectedMenu(menu); // 设置当前选中的菜单
  };

  return (
    <div className="admin-menu">
      <ul>
        <li onClick={() => handleMenuClick('user-management')}>用户管理</li>
        <li onClick={() => handleMenuClick('other-feature')}>其他功能</li>
        {/* 添加更多菜单项 */}
      </ul>
    </div>
  );
};


export default AdminMenu;
